package com.gec.hawaste.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.gec.hawaste.entity.SysArea;
import com.gec.hawaste.service.ISysAreaService;
import com.gec.hawaste.utils.PageInfo;
import com.gec.hawaste.utils.ResultBean;

/**
 * <p>
 * 区域表 前端控制器
 * </p>
 *
 * @author gec
 * @since 2022-07-01
 */
@RestController
@RequestMapping("/manager/area")
public class SysAreaController {
	@Autowired
	private ISysAreaService iService;
	
	@RequestMapping("/select/{current}/{size}")
	public ResultBean <PageInfo>select(@PathVariable("current") int current,
            @PathVariable("size") int size){
		PageInfo<SysArea> page = iService.page(new PageInfo<SysArea>(current,size));
		
		page.setNavigatePage();
		return ResultBean.ok(page);
	}
}
